/*
Theme Name: X-Line
Description: 扁平化细线风格主题
Verson: 1.0
Author: WuSiYu
*/


/* 选中文字样式 */
::selection {
	background:#000; 
	color:#fff;
}

::-moz-selection {
	background:#000;
	color:#fff;
}

::-webkit-selection {
	background:#000;
	color:#fff;
}

/* 点击样式 */
*{
	outline: none;
}

*:focus{
	outline: none;
}

/* 全局样式 */
body{
	margin: 0;
	color: #000;
	background: #f5f5f5;
}

a{
	text-decoration: none;
	outline: #fff none 0;
	color: #333;
}

a:hover{
	color:#555;
}

a:focus{
	outline: #fff none 0;
}

h1,h2,h3,h4,h5,h6{
	margin-top: 20px;
	margin-bottom: 10px;
	font-weight: 400;
}

li,ul{
	margin: 0;
	padding: 0;
}

img{
	max-width: 100%;
}

/* 按钮样式 */
.btn,
button,
input[type='submit']{
	color: #000;
	background: #f5f5f5;
	border: 1px solid #000;
	font-size: 14px;
	padding: 4px 5px 4px 5px;
	display: inline-block;
	outline: #fff none 0;
}

.btn:hover,
button:hover,
input[type='submit']:hover{
	background-color: #e0e0e0;
}

.btn:active,
button:active,
input[type='submit']:active{
	color: #fff;
	background-color: #000;
	outline: #fff none 0;
}

/* 输入框样式 */
input[type='text'],textarea{
	color: #000;
	background: #f5f5f5;
	border: 1px solid #000;
	font-size: 14px;
	padding: 5px 5px 5px 5px;
}

/* 顶栏样式 */
#nav{
	position: fixed;
	top: 0px;
	width: 100%;
	border-bottom: 1px solid #000;
	background: #f5f5f5;
}

#nav-name{
	text-align: center;
	height: 50px;
	width: 240px;
	float: left;
	border-right: 1px solid #000;
}

#nav-name-text{
	display: block;
	font-size: 28px;
	margin: 8px 0px 7px 0px;
	color: #000;
}

#nav-list-menu{
	border-top: 1px solid #000;
	border-bottom: 1px solid #000;
	width: 100%;
	height: auto;
	position: fixed;
	top: 50px;
	right: 0;
	background: #f5f5f5;
	z-index: 1000;
}

#nav-list{
	height: 50px;
}

#nav-list div ul,#nav-list-menu div ul{
	margin: 0;
}

#nav-list div ul li,#nav-list-menu div ul li{
	list-style: none;
	display: inline-block;
}

.menu-item a{
	color: #000;
	background: #f5f5f5;
	display: inline-block;
	padding: 15px 30px 15px 30px;
	margin-right: -5px;
	border-right: 1px solid #000;
}

.menu-item a:hover{
	color: #000;
	background-color: #e0e0e0;
}

.current-post-ancestor a, .current-menu-parent a, .current-menu-item a, .current_page_item a{
	color: #000;
	background-color: #ccc;
}

.current-post-ancestor a:hover, .current-menu-parent a:hover, .current-menu-item a:hover, .current_page_item a:hover{
	color: #000;
	background-color: #ccc;
}

#nav-show-list{
	display: none;
	position: fixed;
	top: 12px;
	right: 12px;
}

/* 文章框样式 */
#page-body{
	padding-top: 50px;
}

#main{
	margin: 20px 0 0 240px;
	border-left: 1px solid #000;
}

/* 侧边栏样式 */
#sidebar{
	width: 240px;
	float: left;
	border-right: 1px solid #000; 
}

.widget{
	border-bottom: 1px solid #000;
	padding: 10px;
}

.widgettitle{
	margin: 0;
	font-size: 16px;
}

.widget ul li{
	list-style: none;
	margin-top: 7px;
	margin-left: 5px;
	font-size: 13px;
}

.post_body{
	border-bottom: 1px solid #000;
	padding: 0px 20px 20px 20px;
}

/* 文章页专用样式 */
#single-post{
	padding: 0px 20px 10px 20px;
	border-bottom: 1px solid #000;
}

#comment-div{
	padding: 10px 20px 20px 20px;
}
.widget:first-child{
  position: fixed;
  width: 220px;
  background: #f5f5f5;
  top: 51px;
  border-right: 1px solid #000;
}
#sidebar{
  margin-top: 51px;
}


/* 底部样式 */
#footer{
	padding: 0 5px 0 6px;
	border-top: 1px solid #000;
	margin-top: -1px;
}


/* 评论框样式 */
.comment-body{
  border: 1px solid #000;
  margin: 10px 0 0 0;
}

.avatar.avatar-32.photo{
  margin: 2px 0 2px 2px;
  display: inline;
}

.comment-author.vcard{
  border-bottom: 1px solid #000;
  background-color: #f5f5f5;
}

.says{
  margin:0 0 0 5px;
}

.comment-meta.commentmetadata{
  border-bottom: 1px solid #000;
  background-color: #f5f5f5;
}

.reply{
  border-top: 1px solid #000;
  background-color: #f5f5f5;
}

.children{
  list-style-type: square;
}

#author,#email,#url{
	width: 200px;
}

#comment{
	min-height: 58px;
	min-width: 200px;
	max-width: 100%;
}


/* 其他 */
.list-title{
	margin: -4px 0 0 0;
	padding: 0 0 10px 20px;
	border-bottom: 1px solid #000;
}

.log-list-info{
	font-size: 12px;
}

/* 响应式布局 */
@media only screen and (max-width: 768px) and (min-width: 600px){
	#nav-list{
		display: none;
	}
	#nav-show-list{
		display: inline-block;
	}
}

@media only screen and (max-width: 599px) {
	#nav-list{
		display: none;
	}
	#nav-show-list{
		display: inline-block;
	}
	#sidebar{
		display: none;
	}
	#main{
		margin-left: 0;
		border-left: 0px;
	}
	#nav-name{
		border-right: 0px;
		width: auto;
	}
	#nav-name-text{
		padding-left: 20px;
	}
	#nav-list-menu div ul li{
		display: block;
	}
	.menu-item a{
		color: #000;
		background: #f5f5f5;
		display: block;
		padding: 10px 30px 10px 30px;
		border-bottom: 1px solid #000;
	}
	.current-post-ancestor a, .current-menu-parent a, .current-menu-item a, .current_page_item a{
		color: #000;
		background-color: #ccc;
	}
}
